package com.project.service;

import com.project.dto.FactoryDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(url = "http://127.0.0.1:8001" ,name = "factory")

public interface FactoryRemoteService {
    @GetMapping("factory/findById/{id}")
    public FactoryDto findById(@PathVariable("id") Integer id);


}
